package by.grsu.crs.dao.impl;

import java.sql.PreparedStatement;
import java.sql.SQLException;

public abstract class StatementCallback<T> {

	private PreparedStatement preparedStatement;

	public StatementCallback(final PreparedStatement preparedStatement) {
		super();
		this.preparedStatement = preparedStatement;
	}

	public abstract T execute() throws SQLException;

	public PreparedStatement getPreparedStatement() {
		return preparedStatement;
	}

	public void setPreparedStatement(final PreparedStatement preparedStatement) {
		this.preparedStatement = preparedStatement;
	}

}
